/*
 * @Description:
 * @Version: 2.0
 * @Autor: kafei
 * @Date: 2021-12-03 16:39:22
 * @LastEditors: kafei
 * @LastEditTime: 2021-12-06 19:54:19
 */
export const columnData = [
  {
    props: 'rid',
    label: '角色ID'
  },
  {
    props: 'rName',
    label: '权限字符'
  },
  {
    props: 'rdesc',
    label: '角色名称'
  },
  {
    props: 'rStatus',
    label: '角色状态',
    isTemplate: true,
    columnConfig: {
      width: 120
    }
  },
  {
    props: 'userId',
    label: '所属用户',
    isTemplate: true
  },
  {
    props: 'mid',
    label: '所属菜单',
    isTemplate: true
  },
  {
    props: 'action',
    label: '操作',
    isTemplate: true,
    columnConfig: {
      width: 120,
      fixed: 'right'
    }
  }
]

export const buttonData = [
  {
    text: '新增',
    type: 'primary',
    icon: 'el-icon-plus',
    actionType: 'add'
  },
  {
    text: '刷新',
    type: 'success',
    icon: 'el-icon-refresh-right',
    actionType: 'refresh'
  }
]

export const itemData = [
  {
    props: 'rName',
    label: '权限字符',
    type: 'el-input',
    config: {
      placeholder: '请输入权限字符',
      clearable: true
    },
    span: 8
  },
  {
    props: 'rdesc',
    label: '角色名称',
    type: 'el-input',
    config: {
      placeholder: '请输入角色名称',
      clearable: true
    },
    span: 8
  },
  {
    props: 'rStatus',
    label: '角色状态',
    type: 'el-select-options',
    config: {
      placeholder: '请选择角色状态',
      clearable: true,
      options: [
        { label: '启用', value: '1' },
        { label: '未启用', value: '0' }
      ]
    },
    span: 8
  }
]
